package com.assets.asset.service.impl;

import java.util.List;

import com.assets.asset.domain.TReturn;
import com.assets.asset.mapper.TReturnMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.assets.asset.service.ITReturnService;

/**
 * 退库Service业务层处理
 *
 * @author bin
 * @date 2023-03-13
 */
@Service
public class TReturnServiceImpl implements ITReturnService
{
    @Autowired
    private TReturnMapper tReturnMapper;

    /**
     * 查询退库
     *
     * @param id 退库主键
     * @return 退库
     */
    @Override
    public TReturn selectTReturnById(Long id)
    {
        return tReturnMapper.selectTReturnById(id);
    }

    /**
     * 查询退库列表
     *
     * @param tReturn 退库
     * @return 退库
     */
    @Override
    public List<TReturn> selectTReturnList(TReturn tReturn)
    {
        return tReturnMapper.selectTReturnList(tReturn);
    }

    /**
     * 新增退库
     *
     * @param tReturn 退库
     * @return 结果
     */
    @Override
    public int insertTReturn(TReturn tReturn)
    {
        return tReturnMapper.insertTReturn(tReturn);
    }

    /**
     * 修改退库
     *
     * @param tReturn 退库
     * @return 结果
     */
    @Override
    public int updateTReturn(TReturn tReturn)
    {
        return tReturnMapper.updateTReturn(tReturn);
    }

    /**
     * 批量删除退库
     *
     * @param ids 需要删除的退库主键
     * @return 结果
     */
    @Override
    public int deleteTReturnByIds(Long[] ids)
    {
        return tReturnMapper.deleteTReturnByIds(ids);
    }

    /**
     * 删除退库信息
     *
     * @param id 退库主键
     * @return 结果
     */
    @Override
    public int deleteTReturnById(Long id)
    {
        return tReturnMapper.deleteTReturnById(id);
    }
}
